
<table class="list">
<tr class="head">
	<th>Title/Code</th>
	<th>元素数</th>
	<th>修改时间</th>
	<th>&nbsp;</th>
</tr>
<?php if($list) foreach($list as $c){ ?>
<tr class="body">
	<td><a href="javascript:preview(<?php echo $c['pro_id']?>)" title='点击预览表单'><?php echo $c['pro_title'];?></a>
		<?php echo $c['pro_code'];?></td>
	<td><a href="javascript:items(<?php echo $c['pro_id']?>)">[ <?php echo $c['attr_c'];?> ]</a></td>
	<td><?php echo $c['chgtime'];?></td>
	<td width='60'>
		<a href='javascript:chgMName(<?php echo $c['pro_id']?>)'>编辑</a>
		删除
	</td>
</tr>
<?php } ?>
<tr class="foot">
	<td colspan=4>
		<input type="button" value="新建" onclick="location.href='<?php echo url('proto-add')?>'" />
	</td>
</tr>
</table>

<script type="text/javascript">
function chgMName(pro_id)
{
	//location.href='<?php echo url('proto-mod/id/ID')?>'.replace('ID',pro_id);
}
function preview(pro_id)
{
	location.href='<?php echo url('proto-prev/id/ID')?>'.replace('ID',pro_id);
}
function items(pro_id)
{
	//location.href='<?php echo url('proto-attr/pid/ID')?>'.replace('ID',pro_id);
}
</script>
